package com.qcit.user.bean.common

import com.qcit.base.BaseApplication

fun Int.topx():Int=(this * BaseApplication.sApplication.resources.displayMetrics.density.toFloat()+0.5f).toInt()

fun Int.todp():Int =(this / BaseApplication.sApplication.resources.displayMetrics.density.toFloat()+0.5f).toInt()